package filter

import (
	"github.com/zsxm/scgo/filter"
	"github.com/zsxm/scgo/log"
)

func init() {
	filter.Add("/*", TestaFilter)
	filter.Add("/test/index", TestbFilter)
}

func TestaFilter(fc filter.FilterContext) error {
	log.Info("TestaFilter ", fc.Params)
	return nil
}

func TestbFilter(fc filter.FilterContext) error {

	log.Info(fc, "bbbbbbbbbbbbbbbbbbb", fc.Params)
	return nil
}
